package com.atguigu.gmall.order.service;


import com.atguigu.gmall.model.enums.OrderStatus;
import com.atguigu.gmall.model.enums.ProcessStatus;
import com.atguigu.gmall.model.order.OrderInfo;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 *
 */
public interface OrderInfoService extends IService<OrderInfo> {

    void updateOrderStatus(ProcessStatus processStatus, ProcessStatus processStatus1, Long orderId, Long userId);

    OrderInfo getOrderInfoById(Long orderId);

    void updateStatusToPaid(String outTradeNo);

    OrderInfo getOrderInfoAndDetails(String outTradeNo);
    //修改订单状态为已拆分
    void updateOrderStatusToSpilt(Long orderId, Long userId, ProcessStatus processStatus);

    void updateStatusByStock(Long orderId, ProcessStatus newProcessStatus);
}
